let arr = []
let arrLength = new Array(5)
// console.log(arrLength.length)

const fibonacci = []; // {1}
fibonacci[1] = 1; // {2}
fibonacci[2] = 1; // {3}

for (let i = 3; i < 20; i++) {
  fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2]; // {4}
}
// for (let i = 1; i < fibonacci.length; i++) { // {5}
//   console.log(fibonacci[i]); // {6}
// }

const people = [
  { name: 'jon', age: 18 },
  { name: 'Alan', age: 21 },
  { name: 'Yun', age: 20 },
]

const cpmparePeople = (a, b) => {
  if (a.age < b.age) {
    return -1
  }
  if (a.age > b.age) {
    return 1
  }
  return 0
}
// console.log(people.sort((a, b) => a.age - b.age))
// console.log(people.findIndex(a => a.age > 18))

arrLength.fill(666)
console.log(arrLength.toString())
console.log(arrLength.join('-'))